package com.example._05mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
//@AllArgsConstructor
@TableName("users")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField(value = "userName")
    private String userName;
    @TableField(value = "passWord")
    private String passWord;
    @TableField(value = "user_sex")
    private String userSex;
    @TableField(value = "nick_name")
    private String nickName;
}
